package com.Teacher.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-07-21
 * Time:12:30
 * Text：获取配置文件
 */
@RequestMapping("/config")
@RefreshScope
@RestController
public class NacosController {
    @Value("${test.num}")
    private String num;

    @RequestMapping("/get")
    public String get() {
        return num;
    }

}
